package com.ssy.lingxi.contract.config;

import com.ssy.lingxi.contract.service.IContractDataInitService;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * 服务启动后，执行数据初始化
 * @author 万宁
 * @version 2.0.0
 * @date 2021-06-15
 */
@Configuration
@DependsOn("languageHolder")
public class ContractServiceInitConfig {

    @Resource
    private IContractDataInitService contractDataInitService;

    @PostConstruct
    public void systemInit() {
        //初始化合同服务数据
        contractDataInitService.initContractServiceData();
    }
}
